//---------------------------------------------------------------------------

#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "vcand.h"
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
#include <Menus.hpp>
#include <Dialogs.hpp>
#include "Unit2.h"
#include "Unit3.h"
//---------------------------------------------------------------------------
class TMainForm : public TForm
{
__published:	// IDE-managed Components
        TStatusBar *StatusBar1;
        TTimer *CANRxTimer;
        TMainMenu *MainMenu1;
        TMenuItem *File;
        TMenuItem *CAN_Active;
        TMenuItem *Exit;
        TMenuItem *Operation;
        TGroupBox *RxMessage;
        TMemo *Memo1;
        TGroupBox *Filter;
        TRadioButton *F_ShowAll;
        TRadioButton *F_ShowSelected;
        TEdit *EMask;
        TEdit *ECode;
        TLabel *Mask;
        TLabel *Code;
        TGroupBox *MsgControl;
        TButton *Clear;
        TSaveDialog *SaveDialog1;
        TButton *SaveData;
        TButton *ShowData;
        TGroupBox *RDDataByLID;
        TComboBox *CBRead;
        TGroupBox *WRDataByLID;
        TComboBox *CBWrite;
        TGroupBox *StRoutineByLID;
        TComboBox *CBRoutine;
        TGroupBox *TxButtonSelectGroup;
        TButton *ReadExecute;
        TButton *WriteExecute;
        TMenuItem *IOByLID;
        TMenuItem *WRParameter;
        TMenuItem *Help;
        TOpenDialog *OpenDialog1;
        TButton *BTesterPresent;
        TGroupBox *GBDTC;
        TButton *BReadDTC;
        TRadioButton *AllSupported;
        TRadioButton *AllIdentified;
        TButton *BClearDTC;
        TTimer *TPTimer;
        TGroupBox *DiagModeSelect;
        TComboBox *CBModeSelect;
        TGroupBox *GBIOControl;
        TButton *IOControl;
        TRadioButton *ReturnToECU;
        TRadioButton *ReportStatus;
        TRadioButton *ShortTADJ;
        TGroupBox *GBRoutineControl;
        TButton *RoutineExecute;
        TRadioButton *RBStatusRequest;
        TRadioButton *RBRoutineRequest;
        TButton *StopRoutine;
        TGroupBox *GBBCMReset;
        TButton *BCMReset;
        TCheckBox *ResetFBCM;
        TCheckBox *ResetRBCM;
        TButton *StopDiagSession;
        void __fastcall CANRxTimerTimer(TObject *Sender);
        void __fastcall ReadExecuteClick(TObject *Sender);
        void __fastcall ClearClick(TObject *Sender);
        void __fastcall SaveDataClick(TObject *Sender);
        void __fastcall ShowDataClick(TObject *Sender);
        void __fastcall F_ShowAllClick(TObject *Sender);
        void __fastcall F_ShowSelectedClick(TObject *Sender);
        void __fastcall CAN_ActiveClick(TObject *Sender);
        void __fastcall ExitClick(TObject *Sender);
        void __fastcall CBReadChange(TObject *Sender);
        void __fastcall WriteExecuteClick(TObject *Sender);
        void __fastcall CBWriteChange(TObject *Sender);
        void __fastcall CBRoutineChange(TObject *Sender);
        void __fastcall RoutineExecuteClick(TObject *Sender);
        void __fastcall BCMResetClick(TObject *Sender);
        void __fastcall WRParameterClick(TObject *Sender);
        void __fastcall HelpClick(TObject *Sender);
        void __fastcall BTesterPresentClick(TObject *Sender);
        void __fastcall TPTimerTimer(TObject *Sender);
        void __fastcall AllIdentifiedClick(TObject *Sender);
        void __fastcall AllSupportedClick(TObject *Sender);
        void __fastcall BClearDTCClick(TObject *Sender);
        void __fastcall BReadDTCClick(TObject *Sender);
        void __fastcall IOByLIDClick(TObject *Sender);
        void __fastcall CBModeSelectChange(TObject *Sender);
        void __fastcall FormActivate(TObject *Sender);
        void __fastcall IOControlClick(TObject *Sender);
        void __fastcall RBRoutineRequestClick(TObject *Sender);
        void __fastcall RBStatusRequestClick(TObject *Sender);
        void __fastcall ReturnToECUClick(TObject *Sender);
        void __fastcall ReportStatusClick(TObject *Sender);
        void __fastcall ShortTADJClick(TObject *Sender);
        void __fastcall StopRoutineClick(TObject *Sender);
        void __fastcall ResetFBCMClick(TObject *Sender);
        void __fastcall ResetRBCMClick(TObject *Sender);
        void __fastcall StopDiagSessionClick(TObject *Sender);
private:
                // User declarations
public:		// User declarations
        __fastcall TMainForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TMainForm *MainForm;
//---------------------------------------------------------------------------
#endif
 